<%--
  Created by IntelliJ IDEA.
  User: 淅汐
  Date: 2025/10/9
  Time: 下午7:10
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>登录页面</title>
</head>
<body>
<form method="post" action="<%=request.getContextPath()%>/login">
    <table align="center">
        <tr align="center">
            <td colspan="2"><h1>登录</h1></td>
        </tr>
        <tr>
            <td>用户名：</td>
            <td><input name="username" value="${param.username}"></td>
        </tr>
        <tr>
            <td>密码：</td>
            <td><input name="password" type="password"></td>
        </tr>
        <tr align="center">
            <td colspan="2">
                <input type="submit" value="登录">
                <a href="<%=request.getContextPath()%>/register">注册</a>
            </td>
        </tr>
        <tr>
            <td colspan="2">${message}</td>
        </tr>
    </table>
</form>
</body>
</html>
